package com.bdqn.paper;
import com.bdqn.dao.Ink;
import java.awt.*;
/**
 * 彩色墨盒
 */
public class CoIorInk implements Ink {
    /**
     * 打印采彩色文字
     * @param red
     * @param green
     * @param blue
     * @return
     */
    @Override
    public String getColor(int red, int green, int blue) {
        Color color=new Color(red,green,blue);
        return "#"+Integer.toHexString(color.getRGB()).substring(2);
    }
}
